package com.freesky.biz.rights.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freesky.biz.rights.domain.EncryptBatchEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 券码分配
 */
public interface EncryptBatchMapper extends BaseMapper<EncryptBatchEntity> {

    public EncryptBatchEntity checkBatchNameUnique(@Param("batchName") String batchName);

    Page selectEncryptBatchPage(Page page, @Param("entity") EncryptBatchEntity entity);

    List<EncryptBatchEntity> selectEncryptBatchPage(@Param("entity") EncryptBatchEntity entity);

    public int deleteBatchByIds(String[] ids);
}
